package highTech.generic;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class HashMapIterator3 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Map<String, Integer> maps=new HashMap<String, Integer>();
		maps.put("zhaohui", 24);
		maps.put("linan", 23);
		maps.put("luzhou", 23);
		
		Set<Map.Entry<String, Integer>> entrySet=maps.entrySet();
		for(Map.Entry<String, Integer> entry:entrySet){
			System.out.println(entry.getKey()+":"+entry.getValue());
		}

	}

}
